package com.peopledelete.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.peopledelete.pojo.Origindayrecords;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author cyt
 * @create 2020-04-26 17:59
 */
public interface OrigindayrecordsService extends IService<Origindayrecords> {

    // 得到每一天的每个小时的进出人数
    List<Map<String, Object>> getDayOutInNum(int hour);

    // 插入数据
    void insertDate(Integer inNum, Integer outNum);

    // 查询出当天的累计出站、入站人数
    List<Map<String, Object>> getCntNum();

    // 清洗 每日原始记录到 每日记录表中
    int initRecords(String dateString, Integer begin, Integer end);
}
